﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// 物料目录
    /// </summary>
    [Table("PB_Material_Temp")]
    public partial class PB_Material_Temp
    {

        /// <summary>
        /// 主键ID
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 组织Id
        /// </summary>
        public String DeptId { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public String Name { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public String Code { get; set; }

        /// <summary>
        /// 成品编码
        /// </summary>
        public String ProductCode { get; set; }

        /// <summary>
        /// 条码
        /// </summary>
        public String BarCode { get; set; }

        /// <summary>
        /// 物料简称
        /// </summary>
        public String SimpleName { get; set; }

        /// <summary>
        /// 物料类型ID
        /// </summary>
        public String MaterialTypeId { get; set; }

        /// <summary>
        /// 单位组ID
        /// </summary>
        public String UnitGroupId { get; set; }

        /// <summary>
        /// 仓储单位ID
        /// </summary>
        public String storageId { get; set; }

        /// <summary>
        /// 销售单位ID
        /// </summary>
        public String saleId { get; set; }

        /// <summary>
        /// 采购单位ID
        /// </summary>
        public String purchaseId { get; set; }

        /// <summary>
        /// 生产单位ID
        /// </summary>
        public String productionId { get; set; }

        /// <summary>
        /// 工序ID（关联PB_ProcecureSub）
        /// </summary>
        public String ProcecureId { get; set; }

        /// <summary>
        /// 物料规格
        /// </summary>
        public String Spec { get; set; }

        /// <summary>
        /// 上限数量
        /// </summary>
        public Double? Max { get; set; }

        /// <summary>
        /// 下限数量
        /// </summary>
        public Double? Min { get; set; }

        /// <summary>
        /// 客户ID
        /// </summary>
        public String CusId { get; set; }

        /// <summary>
        /// 供应商ID
        /// </summary>
        public String SupId { get; set; }

        /// <summary>
        /// 默认存储仓库
        /// </summary>
        public String StorId { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public Double? Price { get; set; }

        /// <summary>
        /// 最新单价
        /// </summary>
        public Double? NewPrice { get; set; }

        /// <summary>
        /// 最低单价
        /// </summary>
        public Double? MinPrice { get; set; }

        /// <summary>
        /// 最高单价
        /// </summary>
        public Double? MaxPrice { get; set; }

        /// <summary>
        /// 结算单价
        /// </summary>
        public Double? SettlePrice { get; set; }

        /// <summary>
        /// 理论重量
        /// </summary>
        public Double? Weight { get; set; }

        /// <summary>
        /// 面积
        /// </summary>
        public Double? Area { get; set; }

        /// <summary>
        /// 包装规格
        /// </summary>
        public String PackingSpec { get; set; }

        /// <summary>
        /// 长
        /// </summary>
        public Double? Length { get; set; }

        /// <summary>
        /// 宽
        /// </summary>
        public Double? Width { get; set; }

        /// <summary>
        /// 高
        /// </summary>
        public Double? Height { get; set; }

        /// <summary>
        /// 预估单价
        /// </summary>
        public Double? Estimate { get; set; }

        /// <summary>
        /// 条形码
        /// </summary>
        public String QrCode { get; set; }

        /// <summary>
        /// 安装位置
        /// </summary>
        public String PositionCode { get; set; }

        /// <summary>
        /// 材质
        /// </summary>
        public String Ofmaterial { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Remarks { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 是否为成品：0=否；1=是
        /// </summary>
        public Boolean? IsProduct { get; set; }

        /// <summary>
        /// 是否为自制件：0=否；1=是
        /// </summary>
        public Boolean? IsMine { get; set; }

        /// <summary>
        /// 是否外购：0=否；1=是
        /// </summary>
        public String IsBuy { get; set; }

        /// <summary>
        /// 是否有Bom引用：0=否；1=是
        /// </summary>
        public String HasRef { get; set; }

        /// <summary>
        /// 是否为虚拟键：0=否；1=是
        /// </summary>
        public String IsVirtualkey { get; set; }

        /// <summary>
        /// 是否为劳务：0=否；1=是
        /// </summary>
        public Boolean? IsLabour { get; set; }

        /// <summary>
        /// 是否序列号：0=否；1=是
        /// </summary>
        public Boolean? IsNumber { get; set; }

        /// <summary>
        /// 是否为关键价 0=否;1=是
        /// </summary>
        public Boolean? IsKeyprice { get; set; }

        /// <summary>
        /// 是否为关键物料0=否；1=是
        /// </summary>
        public Boolean? IsCruxMaterial { get; set; }

        /// <summary>
        /// 是否数量统计0=否；1=是
        /// </summary>
        public Boolean? IsQuantity { get; set; }

        /// <summary>
        /// 是否粗放生产0=否；1=是
        /// </summary>
        public Boolean? IsExtensiveProduction { get; set; }

        /// <summary>
        /// 是否使用条码管理0=否；1=是
        /// </summary>
        public String IsBecode { get; set; }

        /// <summary>
        /// 物料img
        /// </summary>
        public String MaterialImg { get; set; }

        /// <summary>
        /// 每包装包含数量
        /// </summary>
        public Double? PackageNum { get; set; }

        /// <summary>
        /// 审核前数量
        /// </summary>
        public Double? ScanNum { get; set; }

        /// <summary>
        /// 审核后数量
        /// </summary>
        public Double? CheckNum { get; set; }

        /// <summary>
        /// 仓储单位对应得系数
        /// </summary>
        public Double? Storagenumber { get; set; }

        /// <summary>
        /// 销售单位对应的系数
        /// </summary>
        public Double? Salenumber { get; set; }

        /// <summary>
        /// 采购单位对应的系数
        /// </summary>
        public Double? Purchasenumber { get; set; }

        /// <summary>
        /// 生产单位对应的系数
        /// </summary>
        public Double? Productionnumber { get; set; }

        /// <summary>
        /// 主单位:ps 1.仓储单位 2. 销售单位 3.采购单位 4生产单位
        /// </summary>
        public String MainUnit { get; set; }

    }
}